from typing import TYPE_CHECKING

from sqlalchemy import Boolean, Column, Integer, String, text, TIMESTAMP, Text
from sqlalchemy.orm import relationship

from app.db.base_class import Base


class UserSetting(Base):
    __tablename__ = 'tb_user_setting'

    id = Column(Integer, primary_key=True)
    userId = Column('user_id', Integer, index=True)
    content = Column(Text)
    createdDate = Column('created_date', TIMESTAMP, server_default=text('CURRENT_TIMESTAMP'))
    updatedDate = Column('updated_date', TIMESTAMP,
                         server_default=text('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'))

